﻿using System;
using System.Net;
using System.Xml.Linq;

namespace ArmoryBrowser.Entities
{
    public class SpellPetBonus
    {
        #region Fields
        private string _attackField;
        private string _damageField;
        private string _fromTypeField;
        #endregion
        #region Properties
        public string Attack
        {
            get
            {
                return this._attackField;
            }
            set
            {
                this._attackField = value;
            }
        }

        public string Damage
        {
            get
            {
                return this._damageField;
            }
            set
            {
                this._damageField = value;
            }
        }

        public string FromType
        {
            get
            {
                return this._fromTypeField;
            }
            set
            {
                this._fromTypeField = value;
            }
        }
        #endregion
        #region Constructor
        public SpellPetBonus(XElement element)
        {
            Attack = element.GetAttributeValue("attack");
            Damage = element.GetAttributeValue("damage");
            FromType = element.GetAttributeValue("fromType");
        }
        #endregion
    }
}
